package com.qst.crop.demo.mapper;

import com.qst.crop.demo.entity.Product;
import com.qst.crop.demo.entity.UserProduct;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserProMapper {

    int addFavorite(String userEmail, long productId);

    int delFavorite(String userEmail, long productId);

    List<Long> getProList(String userEmail);

    List<UserProduct> ifExist(String userEmail, long productId);
}
